﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Server.Model;
using Server.Controller;
using System.Diagnostics;
using System.ServiceModel;

namespace Server
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.Title = "Electric Car Server";
            Console.BackgroundColor = ConsoleColor.DarkBlue;
            Console.Clear();
            Console.ForegroundColor = ConsoleColor.Blue;
            using (ServiceHost sh = new ServiceHost(typeof(Service.PlanRouteService)))
            {
                sh.Open();
                Console.WriteLine("Service started on: " + sh.BaseAddresses.First().AbsoluteUri + "\nPress any key to exit");
                Console.ReadKey();
            }
        }
    }
}
